package com.headfirst.strategy.version2;

/**
 * @author sunhongguang
 * @create 2022-01-09-21:14
 */
public class RedheadDuck extends Duck implements Flyable,Quackable {
    @Override
    public void display() {
        System.out.println("红头鸭子");
    }

    @Override
    public void fly() {
        System.out.println("红头鸭在飞翔...");
    }

    @Override
    public void quack() {
        System.out.println("红头鸭呱呱叫...");
    }
}
